﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace lcmyjobs.Web.Admin
{
    public partial class AdminIndex : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Session["adminName"] != null)
                {
                    lcmyjobs.BLL.user_basic bub = new BLL.user_basic();
                    int id = int.Parse(Application["webid"].ToString());
                    DataSet ds = bub.GetAdminMain(id);
                    this.lbl_title0.Text = ds.Tables[0].Rows[0][0].ToString();
                    this.lbl_title1.Text = ds.Tables[1].Rows[0][0].ToString();
                    this.lbl_title2.Text = ds.Tables[2].Rows[0][0].ToString();
                    this.lbladv.Text = ds.Tables[3].Rows[0][0].ToString();
                    this.lblreward.Text = ds.Tables[4].Rows[0][0].ToString();
                    this.lblrewardOK.Text = ds.Tables[5].Rows[0][0].ToString();
                    this.lblreward0.Text = ds.Tables[6].Rows[0][0].ToString();
                    this.lblask.Text = ds.Tables[7].Rows[0][0].ToString();


                    this.lbl_title.Text = Application["webname"].ToString();

                    this.lbl_shdw.Text = ds.Tables[9].Rows[0][0].ToString();
                    this.lbl_ddgddw.Text = ds.Tables[11].Rows[0][0].ToString();
                    this.lbl_ddshdw.Text = ds.Tables[8].Rows[0][0].ToString();
                    this.lbl_ddsjdw.Text = ds.Tables[12].Rows[0][0].ToString();
                    this.lbl_sydw.Text = ds.Tables[13].Rows[0][0].ToString();
                    this.lbl_vipdw.Text = ds.Tables[14].Rows[0][0].ToString();
                    this.lbl_zcgddw.Text = ds.Tables[10].Rows[0][0].ToString();

                    this.lbl_zcjpzw.Text = ds.Tables[17].Rows[0][0].ToString();
                    this.lbl_zcltzw.Text = ds.Tables[26].Rows[0][0].ToString();
                    this.lbl_zcxszw.Text = ds.Tables[27].Rows[0][0].ToString();
                    this.lbl_zczpzw.Text = ds.Tables[18].Rows[0][0].ToString();
                    this.lbl_ltzw.Text = ds.Tables[21].Rows[0][0].ToString();
                    this.lbl_ddshzw.Text = ds.Tables[15].Rows[0][0].ToString();
                    this.lbl_ltzwxd.Text = ds.Tables[20].Rows[0][0].ToString();
                    this.lbl_shzw.Text = ds.Tables[16].Rows[0][0].ToString();//审核职位
                    //this.lbl_shzwxd.Text = ds.Tables[24].Rows[0][0].ToString();//悬赏职位下单
                    this.lbl_sqltzw.Text = ds.Tables[20].Rows[0][0].ToString();
                    this.lbl_shqzjb.Text = ds.Tables[25].Rows[0][0].ToString();
                    this.lbl_xszw.Text = ds.Tables[24].Rows[0][0].ToString();//悬赏职位
                }
                else
                {
                    Maticsoft.Common.MessageBox.ResponseScript(this, "alert('请先登陆！');top.location.href='adminlogin2.aspx'");
                }







            }

        }
    }
}